<div class="page">
    <h1>获取对象嵌套级别 GetMaxFloor</h1>
    <div class="line"></div>
    <h3>根据关键字，获取对象中该关键字的嵌套级别（数组）</h3>
    <br>
    <pre class="line-numbers"><code class="language-js">var data = [{
    id: '11', children: [{
        id: '22', children: [{
            id: '33', children: []
        }]
    }]
}, {
    id: '11', children: []
}, {
    id: '11'
}];
// 使用方法 
var index = icu.util.getMaxFloor(data,'children'); // index = 3
</code></pre>
</div>